package com.tamtamy.jtta.data.json;

import net.sf.json.JSONObject;

import com.tamtamy.jtta.data.Metadata;
import com.tamtamy.jtta.utility.JSONUtility;

public class JSONMetadata extends Metadata {
	
	public JSONMetadata(JSONObject jsonObject) {
		this.pageTitle = JSONUtility.getString(jsonObject, "title");
		this.pageDescription = JSONUtility.getString(jsonObject, "description");
		this.tags = JSONUtility.getString(jsonObject, "tags").split(",");			
	}

}
